package com.artron.mediaartron.data.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by qi on 2017/12/11.
 */

public class Coupon implements Parcelable {

    /**
     * viewEnabled : 1
     * couponName : tian-框画-300新
     * prefeAmount : 300
     * validStartDate : 2017-03-21
     * validEndDate : 2017-11-23
     * prefeType : dixian
     * couponCode : HEbKYq9D08k7
     * productType : all
     */
    private String viewEnabled;
    private String couponName;
    private int prefeAmount;
    private String validStartDate;
    private String validEndDate;
    private String prefeType;
    private String couponCode;
    private String productType;
    private String givSize;

    public String getGivSize() {
        return givSize;
    }

    public void setGivSize(String givSize) {
        this.givSize = givSize;
    }

    public void setViewEnabled(String viewEnabled) {
        this.viewEnabled = viewEnabled;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public void setPrefeAmount(int prefeAmount) {
        this.prefeAmount = prefeAmount;
    }

    public void setValidStartDate(String validStartDate) {
        this.validStartDate = validStartDate;
    }

    public void setValidEndDate(String validEndDate) {
        this.validEndDate = validEndDate;
    }

    public void setPrefeType(String prefeType) {
        this.prefeType = prefeType;
    }

    public void setCouponCode(String couponCode) {
        this.couponCode = couponCode;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public String getViewEnabled() {
        return viewEnabled;
    }

    public String getCouponName() {
        return couponName;
    }

    public int getPrefeAmount() {
        return prefeAmount;
    }

    public String getValidStartDate() {
        return validStartDate;
    }

    public String getValidEndDate() {
        return validEndDate;
    }

    public String getPrefeType() {
        return prefeType;
    }

    public String getCouponCode() {
        return couponCode;
    }

    public String getProductType() {
        return productType;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.viewEnabled);
        dest.writeString(this.couponName);
        dest.writeInt(this.prefeAmount);
        dest.writeString(this.validStartDate);
        dest.writeString(this.validEndDate);
        dest.writeString(this.prefeType);
        dest.writeString(this.couponCode);
        dest.writeString(this.productType);
        dest.writeString(this.givSize);
    }

    public Coupon() {
    }

    protected Coupon(Parcel in) {
        this.viewEnabled = in.readString();
        this.couponName = in.readString();
        this.prefeAmount = in.readInt();
        this.validStartDate = in.readString();
        this.validEndDate = in.readString();
        this.prefeType = in.readString();
        this.couponCode = in.readString();
        this.productType = in.readString();
        this.givSize = in.readString();
    }

    public static final Parcelable.Creator<Coupon> CREATOR = new Parcelable.Creator<Coupon>() {
        @Override
        public Coupon createFromParcel(Parcel source) {
            return new Coupon(source);
        }

        @Override
        public Coupon[] newArray(int size) {
            return new Coupon[size];
        }
    };
}
